package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 下单批次
 * </p>
 *
 * @author hpiggy
 * @since 2024-07-30
 */
@TableName("store_goods_batch")
@ApiModel(value = "StoreGoodsBatch对象", description = "下单批次")
@Data
public class StoreGoodsBatch implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Long subjectsId;

    private Integer batchNum;

    @ApiModelProperty("批次编号")
    private String batchNo;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    List<StoreGoodsOrderBatch> storeGoodsOrderBatchList;

    List<StoreGoods> storeGoodsList;
}
